package l1j.server.server.model.skill.skillmode;

import l1j.server.server.model.L1Character;
import l1j.server.server.model.L1Magic;
import l1j.server.server.model.Instance.L1NpcInstance;
import l1j.server.server.model.Instance.L1PcInstance;
import l1j.server.server.model.skill.L1SkillId;
import l1j.server.server.serverpackets.S_SystemMessage;

/**
 * 堅固防護
 * @author dexc
 *
 */
public class SOLID_CARRIAGE extends SkillMode {

	public SOLID_CARRIAGE() {
	}

	@Override
	public int start(final L1PcInstance srcpc, final L1Character cha, final L1Magic magic, final int integer) throws Exception {
		final int dmg = 0;
		final L1PcInstance pc = (L1PcInstance) cha;
		// 裝備具有盾牌
		if (pc.getInventory().getTypeEquipped(2, 7) >= 1) {
			pc.setSkillEffect(L1SkillId.SOLID_CARRIAGE, integer * 1000);
			
		} else {
			// 3053:你並未裝備盾牌。
			pc.sendPackets(new S_SystemMessage("你並未裝備盾牌。"));
		}

		return dmg;
	}

	@Override
	public int start(final L1NpcInstance npc, final L1Character cha, final L1Magic magic,
			final int integer) throws Exception {
		final int dmg = 0;
		
		return dmg;
	}
	
	@Override
	public void start(final L1PcInstance srcpc, final Object obj) throws Exception {
		// TODO Auto-generated method stub
	}

	@Override
	public void stop(final L1Character cha) throws Exception {
		// TODO Auto-generated method stub
	}
}
